﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dubbo.Rpc.Proxy
{
    public abstract class AbstractProxyFactory : IProxyFactory
    {
        public T GetProxy<T>(IInvoker<T> invoker)
        {
            return GetProxy(invoker, null);
        }
    
        public abstract T GetProxy<T>(IInvoker<T> invoker, Type type);

        public abstract IInvoker<T> GetInvoker<T>(T proxy, URL url);
    }
}
